<?php
class MyApplicationController
	extends BaseController
{
	public $o_navi;
	public $arr_scripts;
	
	private $arr_cssScripts;
	private $arr_jsScripts;
	
	public function start()
	{
		$arr_appConf = $this->o_configuration->getCurrentAppConf();
		$this->arr_cssScripts = $arr_appConf['css_style_sheets'];
		$this->arr_jsScripts = $arr_appConf['js_files'];
		$this->registry->template->s_jsLoadFunction = fw_util_getjsLoadFunction();
		$this->registry->template->arr_jsScriptUrls = $this->arr_jsScripts;
		$this->registry->template->arr_cssSriptUrls = $this->arr_cssScripts;
	}
	
	public function showNavi()
	{
		$arr_options = array(
			'pretty_urls'=> true,
			'is_sub_navi'=> false
		);
		//include the applications declaration file
		include C_FW_customPackage.'configs/applications.php';
		$this->o_navi = new ClaycodeNaviMenu($arr_applications, $arr_options);
		$this->registry->template->s_navi = $this->o_navi->getNaviHtml();
	}
}